const app = getApp();
Component({
  properties: {
    receiveData: {
      type: JSON,
      value: 'default value',
    }
  },
  data: {
    someData: {}
  },
  ready: function () {
      let that=this;
    // app.globalData.consoleFun("=====newsList组件-data=====",[that.data.receiveData])
    console.log("===newlsit====",that.data.receiveData)
  },
  methods: {
    tolinkUrl: function (event) {
      app.globalData.consoleFun("=====newsList组件-id=====",[event.currentTarget.dataset.id])
      let id=event.currentTarget.dataset.id;
      let url=event.currentTarget.dataset.url;
      let linkUrl='news_detail.html?id=' + id;
      if(url){
          linkUrl=url
      }
	  app.globalData.linkEvent(linkUrl)
    }
  },
})